<?php
namespace app\providers\middleware;
use help\IpHelp;

/**
* 校验内网
* @package app\http\middleware
*/
class ChenkIntranet
{	
	//自执行中间件方法
   	public function handle($request, \Closure $next){
        if (!IpHelp::isInternalIp(IpHelp::getOnlineIp())) {
            die('Forbidden Access');
        }
        return $next($request);
    }
    

}